
//----------------------------------------------------------------
// Copyright (C) 2009 上海EZCRS
// 版权所有。 
// All rights reserved.

// 文件名：MsgTaskBean.cs
// 文件功能描述：消息任务
// 
// 
// 创建标识： kevin  2009-6-5 14:50:34
//
// 修改标识：
// 修改描述：
//----------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Strive.Util.Text;
using Strive.Util.Logging;
using Strive.Core.Validations;
using Strive.Core.Service;
using Strive.Core.Translators;
using Strive.Util.Maths;
using Strive.Reflection;
using Strive.Aspects;
using Strive.DataAccess;
using OTA.Notification.Entity;
using OTA.Notification.Entity.Task;

namespace OTA.Notification.Entity.Task
{
    /// <summary>
    ///MsgTask实体类
    ///对应表名:MSG_TASK
    /// </summary>
    [Serializable]
	[Table(Name = "MSG_TASK")]
    public class MsgTaskBean
    {
        
        #region Private 成员
        private int _msg_task_id=0; 
        private string _msg_type=String.Empty; 
        private string _receiver_account=String.Empty; 
        private int _priority=0; 
        private string _level=String.Empty; 
        private int _task_status=0; 
        private int _task_finished=0; 
        private int _task_retry_count=0; 
        private DateTime _create_time=new DateTime(1900,1,1); 
        private DateTime _last_update_time=new DateTime(1900,1,1); 
        private int _msg_event_id=0;   

        #endregion
  
        
        #region Public 成员
   
        /// <summary>
        /// 属性名称：MsgTaskId
        /// 属性描述：
        /// 字段信息：[MSG_TASK_ID],int
        /// </summary>
        [Column(Name="MSG_TASK_ID"),PK]
		public int MsgTaskId
        {
            get { return _msg_task_id; }
            set
            {
            
                {
                    _msg_task_id = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：MsgType
        /// 属性描述：
        /// 字段信息：[MSG_TYPE],nvarchar
        /// </summary>
        [Column(Name="MSG_TYPE")]
		public string MsgType
        {
            get { return _msg_type; }
            set
            {
            
                if(value==null)return;
                if (_msg_type as object == null || !_msg_type.Equals(value))
                {
                    _msg_type = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：ReceiverAccount
        /// 属性描述：
        /// 字段信息：[RECEIVER_ACCOUNT],nvarchar
        /// </summary>
        [Column(Name="RECEIVER_ACCOUNT")]
		public string ReceiverAccount
        {
            get { return _receiver_account; }
            set
            {
            
                if(value==null)return;
                if (_receiver_account as object == null || !_receiver_account.Equals(value))
                {
                    _receiver_account = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：Priority
        /// 属性描述：
        /// 字段信息：[PRIORITY],int
        /// </summary>
        [Column(Name="PRIORITY")]
		public int Priority
        {
            get { return _priority; }
            set
            {
            
                {
                    _priority = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：Level
        /// 属性描述：
        /// 字段信息：[LEVEL],char
        /// </summary>
        [Column(Name="LEVEL")]
		public string Level
        {
            get { return _level; }
            set
            {
            
                if(value==null)return;
                if (_level as object == null || !_level.Equals(value))
                {
                    _level = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：TaskStatus
        /// 属性描述：
        /// 字段信息：[TASK_STATUS],int
        /// </summary>
        [Column(Name="TASK_STATUS")]
		public int TaskStatus
        {
            get { return _task_status; }
            set
            {
            
                {
                    _task_status = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：TaskFinished
        /// 属性描述：
        /// 字段信息：[TASK_FINISHED],int
        /// </summary>
        [Column(Name="TASK_FINISHED")]
		public int TaskFinished
        {
            get { return _task_finished; }
            set
            {
            
                {
                    _task_finished = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：TaskRetryCount
        /// 属性描述：
        /// 字段信息：[TASK_RETRY_COUNT],int
        /// </summary>
        [Column(Name="TASK_RETRY_COUNT")]
		public int TaskRetryCount
        {
            get { return _task_retry_count; }
            set
            {
            
                {
                    _task_retry_count = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：CreateTime
        /// 属性描述：
        /// 字段信息：[CREATE_TIME],datetime
        /// </summary>
        [Column(Name="CREATE_TIME")]
		public DateTime CreateTime
        {
            get { return _create_time; }
            set
            {
            
                {
                    _create_time = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：LastUpdateTime
        /// 属性描述：
        /// 字段信息：[LAST_UPDATE_TIME],datetime
        /// </summary>
        [Column(Name="LAST_UPDATE_TIME")]
		public DateTime LastUpdateTime
        {
            get { return _last_update_time; }
            set
            {
            
                {
                    _last_update_time = value;
                }
             }
        }
  
        /// <summary>
        /// 属性名称：MsgEventId
        /// 属性描述：
        /// 字段信息：[MSG_EVENT_ID],int
        /// </summary>
        [Column(Name="MSG_EVENT_ID")]
		public int MsgEventId
        {
            get { return _msg_event_id; }
            set
            {
            
                {
                    _msg_event_id = value;
                }
             }
        }
  
        #endregion 
  
    }
}
